﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Idte.Common.Process
{
    /// <summary>
    /// This describes the primitive action to be executed
    /// </summary>
    public class ActionDescriptor : IActionDescriptor
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Guid Id { get; set; }
        public object Execute(IExecutionContext context)
        {
            return null;
        }

        protected IDictionary<string, object> GetParams(ExecutionContext context)
        {
            Dictionary<string, object> parametersDict = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
            return parametersDict;
        }
    }
}
